$(function () {
    var token = localStorage.getItem('token')
    if (!token) {
        location.href = './login.html'
    }
})
$('#tuichu').click(function (e) {
    layer.confirm('您确定要退出吗', {
        btn: ['是的,我要走了', '不,我点错了'] //按钮
    }, function () {
        layer.msg('期待与您的 再次会面', {
            icon: 1

        });
        location.href = './login.html'
        localStorage.removeItem('token')
    }, function () {
        layer.msg('也可以这样', {
            time: 20000, //20s后自动关闭
            btn: ['明白了', '知道了']
        });
    });
    //   layer.close(uu)

})